<template>
<el-container>
  <el-carousel :interval="5000" arrow="always">
    <el-carousel-item v-for="item in imgwrap" :key="item.url">
      <img :src="item.url" object-fit="cover" />
    </el-carousel-item>
  </el-carousel>
  <el-footer>
    官网  &thinsp;&thinsp;&thinsp;社区  &thinsp;&thinsp;&thinsp;文档
    <br />http://q.aaaaa.com<br />Copyright © 2022 | XXXXXXX网络科技有限公司
    </el-footer>
</el-container>
</template>

<script>
export default {
  name: "Slideshow",
  components: {},
  data() {
    return {
      imgwrap: [
        { url: require("@/assets/photo.png") },
        { url: require("@/assets/photo1.png") },
        { url: require("@/assets/photo2.png") },
        { url: require("@/assets/photo3.png") },
      ],
    };
  },
};
</script>

 
<style>
.el-carousel__item img {
  width: 100%;
  height: 100%;
  margin-top: 1%;
}

.el-carousel__item h3 {
  color: #475669;
  font-size: 18px;
  opacity: 0.75;
  line-height: 300px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
 .el-footer {
    height: 150px;
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 50px;
  }
</style>
